EphemeralSigner

sealed class EphemeralSigner : Signer(source)

Inheritors

Types

Link copied to clipboard
class EC(config: EphemeralSignerConfiguration, privateKey: EphemeralKeyRef, val publicKey: CryptoPublicKey.EC, val signatureAlgorithm: SignatureAlgorithm.ECDSA) : EphemeralSigner, Signer.ECDSA
Link copied to clipboard
class RSA(config: EphemeralSignerConfiguration, privateKey: EphemeralKeyRef, val publicKey: CryptoPublicKey.RSA, val signatureAlgorithm: SignatureAlgorithm.RSA) : EphemeralSigner, Signer.RSA

Properties

Link copied to clipboard

The underlying JCA PrivateKey object.

The underlying JCA PrivateKey object.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The underlying SecKeyRef referencing the signer's private key. ⚠️ If returned from a keychain signer, must be used immediately. Do not store long term. ⚠️

Link copied to clipboard

Functions

Link copied to clipboard
open override fun exportPrivateKey(): KmmResult<CryptoPrivateKey.WithPublicKey<*>>
Link copied to clipboard

Gets a platform verifier for signatures generated by this Signer.

Link copied to clipboard
fun Signer.makeVerifier(configure: ConfigurePlatformVerifier = null): KmmResult<Verifier>

Get a verifier for signatures generated by this Signer.

Link copied to clipboard
suspend override fun sign(data: SignatureInput): SignatureResult<*>
open suspend fun sign(data: ByteArray): SignatureResult<*>
open suspend fun sign(data: Sequence<ByteArray>): SignatureResult<*>
Link copied to clipboard
suspend fun Signer.sign(tbsCertificate: TbsCertificate): KmmResult<X509Certificate>

Shorthand helper to create an X509Certificate by signing tbsCertificate

Shorthand helper to create a Pkcs10CertificationRequest by signing tbsCsr

Link copied to clipboard
open suspend fun trySetupUninterruptedSigning(): KmmResult<Unit>